﻿@using OBUCare.Core.Models;
@using OBUCare.Core.Common;
@using OBUCare.Web.Infrastructure
@{ 
    List<NavigationData> navItems = new List<NavigationData>() 
    {
        new NavigationData("标签维修单录入","/RepairOrders/NewOrder",true),
        new NavigationData("标签维修单手工补录","/RepairOrders/NewOrderWithNoBaseInfo",true),
        new NavigationData("标签退回维修组","/RepairOrders/List/"+RepairOrderStatus.ReadyForReturnToRepairGroup.ToInt().ToText()),
      
        new NavigationData("维修组确认接收","/Transfer/"),
        new NavigationData("标签返回厂商","/RepairOrders/List/" + RepairOrderStatus.ReadyForReturnToSupplier.ToInt().ToText()),
      
        new NavigationData("厂商反馈数据","/Import"),
        new NavigationData("通知客户确认维修","/RepairOrders/List/" + RepairOrderStatus.SupplierReturnedRepariPrice.ToInt().ToText()),
        new NavigationData("通知厂商维修","/RepairOrders/List/" + RepairOrderStatus.ConfirmedWithRepairByCustomer.ToInt().ToText()),
        new NavigationData("标签返回维修组","/RepairOrders/List/" + RepairOrderStatus.InformeSupplierToRepair.ToInt().ToText()),
        new NavigationData("返回营业厅","/RepairOrders/List/" + RepairOrderStatus.RepairedAndReturnedToRepariGroup.ToInt().ToText()),
        new NavigationData("营业厅确认接收标签","/Transfer/"),
        new NavigationData("通知客户领取","/RepairOrders/List/" + RepairOrderStatus.ReadyForInformCustomer.ToInt().ToText()),
      
        new NavigationData("领取维修标签","/UserReceiveObu/Index"),
        new NavigationData("标签维修单管理","/RepairOrders/List")
    };

    Html.Telerik().PanelBar()
        .Name("PanelBarRepairOrders")
        .BindTo(navItems, (item, navdata) =>
        {
            item.Text = navdata.Text;
            item.Url = navdata.NavigateUrl;
            item.Expanded = navdata.Expanded;
            item.Visible = UIUtility.CheckAccessRight(navdata.NavigateUrl);
        }).Render();
        /*.Items(panelBarItem =>
        {
            panelBarItem.Add().Text("标签维修单录入").Url("/RepairOrders/NewOrder").Expanded(true);
            panelBarItem.Add().Text("标签退回维修组").Url("/RepairOrders/List/"+RepairOrderStatus.ReadyForReturnToRepairGroup.ToInt().ToText());
            panelBarItem.Add().Text("维修组确认接收").Url("/Transfer/"); //+ RepairOrderStatus.ReturnedToRepairGroup.ToInt().ToText()
            panelBarItem.Add().Text("标签返回厂商").Url("/RepairOrders/List/" + RepairOrderStatus.ReadyForReturnToSupplier.ToInt().ToText());
            //panelBarItem.Add().Text("标签已返回厂商").Url("/RepairOrders/List/" + RepairOrderStatus.ReturnedToSupplier.ToInt().ToText());
            panelBarItem.Add().Text("厂商反馈数据").Url("/Import");
            panelBarItem.Add().Text("通知客户确认维修").Url("/RepairOrders/List/" + RepairOrderStatus.SupplierReturnedRepariPrice.ToInt().ToText());
            panelBarItem.Add().Text("通知厂商维修").Url("/RepairOrders/List/" + RepairOrderStatus.ConfirmedWithRepairByCustomer.ToInt().ToText());
            panelBarItem.Add().Text("标签返回维修组").Url("/RepairOrders/List/" + RepairOrderStatus.InformeSupplierToRepair.ToInt().ToText());
            panelBarItem.Add().Text("返回营业厅").Url("/RepairOrders/List/" + RepairOrderStatus.RepairedAndReturnedToRepariGroup.ToInt().ToText());
            panelBarItem.Add().Text("营业厅确认接收标签").Url("/Transfer/"); //RepairOrderStatus.RepairedAndReturnedToAgent.ToInt().ToText()
            panelBarItem.Add().Text("通知客户领取").Url("/RepairOrders/List/" + RepairOrderStatus.ReadyForInformCustomer.ToInt().ToText());
            //panelBarItem.Add().Text("结束维修单").Url("/RepairOrders/List/" + RepairOrderStatus.InformedCustomer.ToInt().ToText());
            //panelBarItem.Add().Text("已经结束维修单").Url("/RepairOrders/List/" + RepairOrderStatus.ClosedWithoutCustomerPickedBack.ToInt().ToText());
            panelBarItem.Add().Text("领取维修标签").Url("/UserReceiveObu/Index");
            panelBarItem.Add().Text("标签维修单管理").Url("/RepairOrders/List");
            
            
        });*/
    
 
}